﻿using SQLite;
using System.Collections.Generic;
using System.Threading.Tasks;

namespace StockTradTest.Data
{
    //我的账户信息结构
    public class MyAccount
    {

        [PrimaryKey, AutoIncrement]
        #region 属性
        public int ID { get; set; }
        public string AccountName { get; set; }
        public string AccountPassword { get; set; }
        public double Fund { get; set; }
        #endregion
        public string Info()
        {
            string text = string.Format("ID:{0}\n" +
                "账户名:{1}\n" +
                "账户密码:{2}\n" +
                "资金:{3}\n",
                ID,
                AccountName,
                AccountPassword,
                Fund);
            return text;
        }
    }
    //我持有的股票信息结构
    public class MyStock
    {

        [PrimaryKey, AutoIncrement]
        #region 属性
        public int ID { get; set; }
        public string StockCode { get; set; }
        public int StockNum { get; set; }
        #endregion
        public string Info()
        {
            string text = string.Format("ID:{0}\n" +
                "账户名:{1}\n" +
                "账户密码:{2}\n" +
                "资金:{3}\n",
                ID,
                StockCode,
                StockNum);
            return text;
        }

    }
}
